package com.longcai.piaojia.conn;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/9/2.
 */
@HttpInlet(Conn.USERADDRESS_ADD_RESS)
public class AddAddressPost extends BaseAsyPost<String> {

    public String user_id, name, phone, address, idnumber, region_id;

    public AddAddressPost(AsyCallBack<String> asyCallBack) {
        super(asyCallBack);
    }

    @Override
    protected String parser(JSONObject object) throws Exception {


        TOAST = object.optString("message");

        if (object.optInt("code") == 200){

            return "";
        }

        return null;
    }
}
